<template>
  <div class="main">
    <div class="img">
      <img :src="user.headimgurl || defaultpic">
    </div>
    <div class="name">{{user.name || user.nickname}}</div>
    <div class="num">
      <span>{{newmsgnum}}</span>
    </div>
  </div>
</template>

<script>
var kefupic = require('../../assets/images/timg.jpg')
export default {
  name: 'noticeMsg',
  data: () => {
    return {
      defaultpic: kefupic
    }
  },
  props: {
    user: {
      default: null
    },
    newmsgnum: {
      default: 0
    }
  },
  created () {
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
@import './style.less';
</style>
